-- 重命名、code action、跳转到定义处、查看文档、查看变量引用、跳转到下一个诊断、跳转到上一个诊断这些功能
return {
    "nvimdev/lspsaga.nvim",
    -- 当执行cmd命令时，触发懒加载
    cmd = "Lspsaga",
    opts = {
        finder = {
            keys = {
                toggle_or_open = "<CR>",
            },
        },
    },
    keys = {
        -- 变量rename
        { "<leader>lr", ":Lspsaga rename<CR>" },
        { "<leader>lc", ":Lspsaga code_action<CR>" },
        { "<leader>ld", ":Lspsaga goto_definition<CR>" },
        { "<leader>lh", ":Lspsaga hover_doc<CR>" },
        -- 查找符号的引用
        { "<leader>lR", ":Lspsaga finder<CR>" },
        { "<leader>ln", ":Lspsaga diagnostic_jump_next<CR>" },
        { "<leader>lp", ":Lspsaga diagnostic_jump_prev<CR>" },
    }
}
